home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 January / WPCJAN97.ISO / refwjan.dxr / 00022_REFAdIdxUpdateSection .ls < prev    next >
Encoding:
Text File  |  1996-11-07  |  758 b   |  26 lines

  1. on REFAdIdxUpdateSection
  2.   global REFSpriteCastNums, REFAdVideoList, REFMasterList, REFAdIdxChosenAd, REFChoosen
  3.   repeat with g = 30 to 33
  4.     set REFChoosen to 0
  5.     if rollOver(g) then
  6.       set the castNum of sprite g to the castNum of sprite g + 1
  7.       updateStage()
  8.       repeat while rollOver(g)
  9.         if the mouseDown then
  10.           set REFAdIdxChosenAd to g - 29
  11.           set REFChoosen to 1
  12.           set the castNum of sprite g to the castNum of sprite g - 1
  13.           put REFAdIdxChosenAd
  14.           REFLeave(2)
  15.           updateStage()
  16.         end if
  17.       end repeat
  18.       if REFChoosen = 0 then
  19.         set the castNum of sprite g to the castNum of sprite g - 1
  20.       end if
  21.       updateStage()
  22.     end if
  23.     updateStage()
  24.   end repeat
  25. end
  26.